<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    const arr = [100, 60, 80]
    // 数组解构 赋值
    let [a, b, c] = arr
    console.log(a);
    console.log(b);
    console.log(c);
    let app1 = '青苹果'
    let app2 = '红苹果'
      ;[app1, app2] = [app2, app1] //结束符是一定要使用的
    console.log(app1, app2);
  </script>
</body>

</html>